package cn.bx.service;


import cn.bx.pojo.AjaxResult;
import cn.bx.pojo.Page;
import cn.bx.pojo.User;

import java.text.SimpleDateFormat;
import java.util.Date;

//@Transactional(readOnly = false)
public interface UserServiceI {

    //用户登录

    public AjaxResult login(String username, String pass);

    //用户查询列表

    public Page<User> search(int pageNo,int limit,String name,Date start, Date end);


    // ,@RequestParam("role")long role
    public AjaxResult userAdd(User user);

    //查询修改用户信息

    public  User userGet(long id);
    //更新用户信息

    public AjaxResult userUpdate(User user);
    //删除用户

    public AjaxResult del1(long id);
    //批量删除

    public AjaxResult batchDel(long[] ids);
    // checkUserNameRepeat

    public AjaxResult checkUserNameRepeat(String userName,Long id);


    //异常处理

    public  AjaxResult error(Exception e);

}
